<div class="applications form">
<?php echo $this->Form->create('Application');?>
	<fieldset>
		<legend><?php echo __('Add Application'); ?></legend>
	<?php
		echo $this->Form->input('summary');
	?>
		<fieldset>
			<legend><?php echo __('ApproveFlow'); ?></legend>
			<fieldset>
				<legend><?php echo __('FlowLayer 1'); ?></legend>
				<div>
					<div style = "float:left; width:25%;clear: none;">
						<label for="AppFlow1_1">User1</label>
						<input name="data[Layer1][Tar1]" maxlength="20" type="text" id="AppFlow1_1"/>
					</div>
					<div style = "float:left; width:25%;clear: none;">
						<label for="AppFlow1_1D">Identity1</label>
						<input name="data[Layer1][Identity1]" maxlength="20" type="text" id="AppFlow1_1D"/>
					</div>
				</div>
				<div>
					<div style = "float:left; width:25%;clear: none;">
						<label for="AppFlow1_2">User2</label>
						<input name="data[Layer1][Tar2]" maxlength="20" type="text" id="AppFlow1_2"/>
					</div>
					<div style = "float:left; width:25%;clear: none;">
						<label for="AppFlow1_2D">Identity2</label>
						<input name="data[Layer1][Identity2]" maxlength="20" type="text" id="AppFlow1_2D"/>
					</div>
				</div>
				<div>
					<div style = "float:left; width:25%;clear: none;">
						<label for="AppFlow1_3">User3</label>
						<input name="data[Layer1][Tar3]" maxlength="20" type="text" id="AppFlow1_3"/>
					</div>
					<div style = "float:left; width:25%;clear: none;">
						<label for="AppFlow1_3D">Identity3</label>
						<input name="data[Layer1][Identity3]" maxlength="20" type="text" id="AppFlow1_3D"/>
					</div>
				</div>
			</fieldset>
			<fieldset>
				<legend><?php echo __('FlowLayer 2'); ?></legend>
				<div>
					<div style = "float:left; width:25%;clear: none;">
						<label for="AppFlow2_1">User1</label>
						<input name="data[Layer2][Tar1]" maxlength="20" type="text" id="AppFlow2_1"/>
					</div>
					<div style = "float:left; width:25%;clear: none;">
						<label for="AppFlow2_1D">Identity1</label>
						<input name="data[Layer2][Identity1]" maxlength="20" type="text" id="AppFlow2_1D"/>
					</div>
				</div>
				<div>
					<div style = "float:left; width:25%;clear: none;">
						<label for="AppFlow2_2">User2</label>
						<input name="data[Layer2][Tar2]" maxlength="20" type="text" id="AppFlow2_2"/>
					</div>
					<div style = "float:left; width:25%;clear: none;">
						<label for="AppFlow2_2D">Identity2</label>
						<input name="data[Layer2][Identity2]" maxlength="20" type="text" id="AppFlow2_2D"/>
					</div>
				</div>
				<div>
					<div style = "float:left; width:25%;clear: none;">
						<label for="AppFlow2_3">User3</label>
						<input name="data[Layer2][Tar3]" maxlength="20" type="text" id="AppFlow2_3"/>
					</div>
					<div style = "float:left; width:25%;clear: none;">
						<label for="AppFlow2_3D">Identity3</label>
						<input name="data[Layer2][Identity3]" maxlength="20" type="text" id="AppFlow2_3D"/>
					</div>
				</div>
			</fieldset>
		</fieldset>
	</fieldset>
	
<?php echo $this->Form->end(__('Submit'));?>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>

		<li><?php echo $this->Html->link(__('List Applications'), array('action' => 'index'));?></li>
		<li><?php echo $this->Html->link(__('List Users'), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User'), array('controller' => 'users', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Attachments'), array('controller' => 'attachments', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Attachment'), array('controller' => 'attachments', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Flownodes'), array('controller' => 'flownodes', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Flownode'), array('controller' => 'flownodes', 'action' => 'add')); ?> </li>
	</ul>
</div>
